Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: write command improvements #1267

Merged
merged 5 commits into from
May 6, 2023
Merged

feat: write command improvements #1267

merged 5 commits into from
May 6, 2023

Conversation

roeap
Copy link
Collaborator

@roeap roeap commented Apr 9, 2023

Description

This PR updates the write operation, specifically:

  • makes handling state consistent with other operations
  • avoids some IO when creating updated table state

One potentially more controversial change is that we now try to case all batches written to either the physical schema (derived from latest parquet file) or the schema derived from the table. I feel this logic may eventually need some updating or at least we need to make sure this is consistently handled across all write paths. In any case, using the file schema we dis already see some schema mis-matches in current tests, so that I included some casting for record batches here.

Related Issue(s)

Documentation

@github-actions
Copy link

github-actions bot commented May 1, 2023

ACTION NEEDED

delta-rs follows the Conventional Commits specification for release automation.

The PR title and description are used as the merge commit message. Please update your PR title and description to match the specification.

@roeap roeap force-pushed the write-command branch 2 times, most recently from 86513e6 to d64c475 Compare May 1, 2023 14:57
@roeap roeap changed the title [WIP] feat: write command improvements feat: write command improvements May 3, 2023
@roeap roeap marked this pull request as ready for review May 4, 2023 01:07
Copy link
Member

@rtyler rtyler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm looking forward to trying some of these changes out with my writer code. This pull request has been hanging out for a little bit so I'm going to land it

@rtyler rtyler merged commit fc134d5 into delta-io:main May 6, 2023
@roeap roeap deleted the write-command branch May 6, 2023 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
binding/rust Issues for the Rust crate rust
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants